package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 confirm_order
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
public class ConfirmOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 会员id */
    @Excel(name = "会员id")
    private Long memberId;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 车次编号 */
    @Excel(name = "车次编号")
    private String trainCode;

    /** 出发站 */
    @Excel(name = "出发站")
    private String start;

    /** 到达站 */
    @Excel(name = "到达站")
    private String end;

    /** 余票ID */
    @Excel(name = "余票ID")
    private Long dailyTrainTicketId;

    /** 车票 */
    @Excel(name = "车票")
    private String tickets;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setTrainCode(String trainCode) 
    {
        this.trainCode = trainCode;
    }

    public String getTrainCode() 
    {
        return trainCode;
    }
    public void setStart(String start) 
    {
        this.start = start;
    }

    public String getStart() 
    {
        return start;
    }
    public void setEnd(String end) 
    {
        this.end = end;
    }

    public String getEnd() 
    {
        return end;
    }
    public void setDailyTrainTicketId(Long dailyTrainTicketId) 
    {
        this.dailyTrainTicketId = dailyTrainTicketId;
    }

    public Long getDailyTrainTicketId() 
    {
        return dailyTrainTicketId;
    }
    public void setTickets(String tickets) 
    {
        this.tickets = tickets;
    }

    public String getTickets() 
    {
        return tickets;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("date", getDate())
            .append("trainCode", getTrainCode())
            .append("start", getStart())
            .append("end", getEnd())
            .append("dailyTrainTicketId", getDailyTrainTicketId())
            .append("tickets", getTickets())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
